@extends('layouts.admin')
@section('content')



    
    <div class="result_wrap" style="padding-left:250px;">
        <form action="{{url('admin/cate/'.$data->cate_id)}}" method="post">
            {{csrf_field()}}
            <input type="hidden" name="_method" value="put">
            <table class="add_tab">
                <tbody>
                <tr>
                    <th><i class="require">*</i>父级分类：</th>
                    <td>
                        <select  name="cate_pid">
                            <option value="">全部</option>
                            @foreach($cate_one as $v)
                                @if($data->cate_pid == $v->cate_id)
                                <option selected value="{{$v->cate_id}}">{{$v->cate_name}}</option>
                                @else
                                    <option  value="{{$v->cate_id}}">{{$v->cate_name}}</option>
                                    @endif
                            @endforeach
                        </select>
                    </td>
                </tr>
                <tr>
                    <th>分类名称：</th>
                    <td>
                        <input type="text" name="cate_name" value="{{$data->cate_name}}">
                        <span><i class="fa fa-exclamation-circle yellow"></i>这里是默认长度</span>
                    </td>
                </tr>
                <tr>
                    <th>分类标题：</th>
                    <td>
                        <input type="text" name="cate_title" value="{{$data->cate_title}}" class="lg">
                        <span><i class="fa fa-exclamation-circle yellow"></i>这里是默认长度</span>
                    </td>
                </tr>
                <tr>
                    <th>关键词：</th>
                    <td>
                        <textarea name="cate_keywords">{{$data->cate_keywords}}</textarea>
                    </td>
                </tr>
                <tr>
                    <th>描述：</th>
                    <td>
                        <textarea name="cate_description">{{$data->cate_description}}</textarea>
                    </td>
                </tr>
                <tr>
                    <th>排序：</th>
                    <td>
                        <input type="text" name="cate_order" value="{{$data->cate_order}}">
                        <span><i class="fa fa-exclamation-circle yellow"></i>这里是默认长度</span>
                    </td>
                </tr>


                    <tr>
                        <th></th>
                        <td>
                            <input type="submit" value="提交">
                            <input type="button" class="back" onclick="history.go(-1)" value="返回">
                        </td>
                    </tr>
                </tbody>
            </table>
        </form>
    </div>
@endsection